<?php
use yii\grid\GridView;
use yii\widgets\LinkPager;
?>
<!--图书类-->
<?= GridView::widget([
    'dataProvider' => $dataProvider,
    'columns' => [
        [
            'class' => 'yii\grid\CheckboxColumn',
            'name' => 'id',
        ],
        'res_code',
        'res_title',
        'res_subtitle',
        //'res_volume',
        'classes.title',
        //'cat_id2',
        'author',
        //'publisher',
        //'create_date',
        'isbn',
        //'cl_cat_id',
        //'keyword',
        //'summary:ntext',
        //'page_num',
        //'resource_id',
        //'url:url',
        'created_at',
    ],
    'pager' => [
        'class' => LinkPager::className(),
        'firstPageLabel' => '首页',
        'prevPageLabel' => '《',
        'nextPageLabel' => '》',
        'lastPageLabel' => '尾页',
        //            'goPageLabel' => true,
        //            'totalPageLable' => '共x页',
        //            'goButtonLable' => 'GO',
        'maxButtonCount' => 5,
        'hideOnSinglePage' => false,
    ]
]); ?>